<?php
require_once 'db.php';

class works extends db{
    public function selects(){
        $this->connect();
        $query = "SELECT*FROM works LIMIT 0,10";
        $works = $this->query($query);
        return $works;
    }
    public  function select($query){
        $work=  $this->query($query);
        return $work;
    }
}
?>
